import net.coobird.thumbnailator.Thumbnails;

import java.io.File;
import java.io.IOException;

public class ResizeImage3 {
    public static void main(String[] args) throws IOException {
        File file = new File("C:\\Users\\Administrator\\Desktop\\20230202020517008803c7cd664e20bb53d4e7d966563f.jpg");
        File dfile = new File("C:\\Users\\Administrator\\Desktop\\resize_google.jpg");
        Thumbnails.of(file).scale(0.3).outputQuality(1).toFile(dfile);
    }
}
